package Day01;

import java.util.Scanner;
public class gwc extends gwccc {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int c=123456;
        gwccc a1=new gwccc();
        object c1=new object();
        System.out.println("请输入密码");
        int password=sc.nextInt();
        gwccc.login(password);
        care();
        System.out.println("♥♥♥♥");
      int yn=sc.nextInt();
        if(yn==c){
            System.out.println("恭喜您现已可享受会员折扣");
            object.addGoods();
            choose();
          vip();
        }else{
            System.out.println("^-^如果不是vip请直接回车^-^");
            object.addGoods();
            choose();
            gwccc.buy();
        }
    }
    private static void vip() {
        Scanner sc = new Scanner(System.in);
        int number, price;
        while (true) {
            System.out.println("请输入数量");
            number = sc.nextInt();
            System.out.println("请输入购买商品的价格");
            price = sc.nextInt();
            System.out.println("恭喜您已成功支付" + (0.95 * number * price) + "元");
            System.out.println(" 欢迎下次光临 ");
        }
    }
}